package com.lenovo.leos.filebrowser.netdisk;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressMessageDialog {

	private static final String TAG = "ProgressDialog";
	private static ProgressDialog progressDialog; 
	
	public static void showMessageDialog(Context context,String title,String msg){
		progressDialog = new ProgressDialog(context);
		progressDialog.setTitle(title);
	    progressDialog.setMessage(msg);
	    progressDialog.setDefaultButton(false);
	    progressDialog.show();
	    progressDialog.setCancelable(false);
	}
	
	public static void cancelDialog() {
		if (null != progressDialog)
			progressDialog.dismiss();
	}

}
